import arbori.*;
import functii.*;
import operatori.*;
import Visitor.*;
import xml.*;


/**
 * Clasa Main
 * @author Sorica Alexandra
 */

public class Main
{
        
        public static void main(String args[])
        {
        	// f(x) = x+5
        	System.out.println("Calculator");
        	Nod n=new Necunoscuta();
        	Nod c=new Constanta();
        	Nod plus=new Plus();
        	
        	plus.setNs(n);
        	plus.setNd(c);
        	ArboreFunctional a=new ArboreFunctional(plus);
        	
        	System.out.println("Functia este: f(x)="+a);
        }
	}
       